str = input("输入字符串: ")
str_list = list(str)
reverse_list = str_list
reverse_list.reverse()
print(f"{str_list}")
print(f"{reverse_list}")
if str_list == reverse_list:
    print("回文字符串")
else:
    print("不是回文字符串")

# com_list = []
# for x in str_list[len(str_list)-1::-1]:
#     com_list.append(x)
#
# print(f"{com_list}")
# if com_list == str_list:
#     print("回文字符串")
# else:
#     print("不是回文字符串")
#
# str = input("输入字符串: ")
# str_list = list(str)
# com_list = str_list[len(str_list)-1::-1]
#
# if com_list == str_list:
#     print("回文字符串")
# else:
#     print("不是回文字符串")
#
